$ {
  let cms=input.cms;

  let isCurMenu=function(url){
    if(cms.curPage.sm_url==url){
      return "layui-this";
    }
    return null;
  }

}
<div class="layui-header">
  <div class="layui-container">
    <div class="layui-row">
      <div class="layui-col-md2 layui-col-sm6">
        <div class="logo"><img src="/home/static/template/default/images/page/logo.png" /></div>
      </div>
      <div class="layui-col-md10 layui-show-md-block layui-hide-sm layui-hide-xs">
        <await(siteMenuItems from cms.siteMenu.getSiteMenuItems(1,""))>

          <ul class="layui-nav layui-layout-center  layui-bg-white" lay-filter="">

            <for(item in siteMenuItems)>
              <if(!item.children)>
                <li class=['layui-nav-item',isCurMenu(item.url)]><a href="${item.url}">${item.title}</a></li>
                </if>
                <else>
                  <li class="layui-nav-item">
                    <a href="javascript:;">${item.title}</a>
                    <dl class="layui-nav-child">
                      <!-- 二级菜单 -->
                      <for(item2 in item.children)>
                        <dd><a href="">${item2.title}</a></dd>
                        </for>
                    </dl>
                  </li>
                </else>
                </for>
          </ul>
          </await>
      </div>
      <div class="layui-col-sm6 layui-show-sm-block  layui-show-xs-block layui-hide-md">
      <i class="menu-icon layui-icon layui-icon-shrink-right layui-layout-right" style=" font-size: 30px; color: #1E9FFF;"></i> 
      </div>
    </div>


  </div>
</div>
